<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
    
    $ie6 = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.');
    $ie7 = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.');
    $ie8 = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.');
    if($ie6 || $ie7 || $ie8) 
    { 
        header("Location: redirect.html");
    }
?>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/x-icon" href="<?php echo base_url(); ?>assets/imgs/favicon.ico" />
<link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>assets/css/bootstrap.css.map" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>assets/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>assets/css/bootstrap-theme.css.map" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>assets/css/s_styles.css" rel="stylesheet" type="text/css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php echo base_url('assets/css/easySlider.css') ?>"/>    
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/jquery-1.11.0.min.js"></script> 
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/bootstrap.js"></script>
<script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script>
<script type="text/javascript" src="<?php echo base_url('assets/js/easySlider1.7.js') ?>"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('#slider').easySlider({
            auto: true, 
    		continuous: true,
            vertical: true,
            controlsShow: true,            	 
        }); 
    });
</script>
<title><?php echo $title; ?></title>
</head>

<body>

    <div class="container">
        <div id="header" class="row">            
            <?php $this->load->view("template/header");?>          
        </div>     
        
        <div id="menu" style="height: 52px;"  class="row">
            <?php $this->load->view("template/menu", $danhmuc);?>
        </div>
            
        <div style="background-color: whitesmoke;" class="row">
            <div style="margin-top: 10px;">
                <div class="col-md-9">
                 <?php
                    $this->load->view($template,$data);
                ?>  
                </div>
                <div class="col-md-3">
                    <div class="panel panel-primary">      
                         <div class="panel-heading text-center"><b>Giờ làm việc</b></div>
                        <div class="tab-content panel-body">
                                <b style="color: red;">Thứ hai đến thứ bảy</b> <br />
                                   Sáng      : <b>08h00 đến 12h00</b> <br />
                                   Chiều     : <b>14h00 đến 20h00</b> <br />
                                <b style="color: red;">Chủ nhật</b> <br />
                                   Sáng     : <b>08h00 đến 12h00</b> <br />
                                <b style="color: red;">Ngày lễ, tết  : </b> <b>Nghỉ</b>
                        </div>                             
                    </div>
                   
                   <?php 
                        if(isset($thongbao) && count($thongbao) > 0)
                        {
                            ?>
                           
                       <div class="panel panel-primary">
                        	<div class="panel-heading text-center"><b>Thông báo</b></div>
                            <div class="panel-body">
                            
                                    <?php                                
                                        if(isset($thongbao) && count($thongbao) > 0)
                                        {
                                            echo "<i>(" . date('d/m/Y', strtotime($thongbao[0]['ngayviet'])) . ")</i>  ";
                                            echo $thongbao[0]['noidungthongbao'] . "";
                                        }
                               ?>
                                
                                                           
                            </div>  
                        </div>    
                        <?php
                            }
                       ?>
                    <div class="panel panel-primary">
                    	<div class="panel-heading text-center"><b>Hỗ trợ trực tuyến</b></div>
                        <div class="panel-body">
                            <a href = 'ymsgr:sendim?joe.softjet' style="margin-left: 20px;">
                              <img src="http://opi.yahoo.com/online?u=joe.softjet&m=g&t=2" border="0" />
                            </a>            
                            <div id="SkypeButton_Call_vampire.1189_1">
                              <script type="text/javascript">
                                Skype.ui({
                                  "name": "chat",
                                  "element": "SkypeButton_Call_vampire.1189_1",
                                  "participants": ["vampire.1189"],
                                  "imageSize": 24
                                });
                              </script>
                            </div>
                        </div>  
                    </div>        
                            
                  <div class="panel panel-primary">
                    	<div class="panel-heading text-center"><b>Video clips</b></div>
                        <div class="panel-body">
                            <video width="100%" controls poster="<?php echo base_url('assets/imgs/thuc-pham-giup-rang-sang-khoe_thumb_140x109_6K5UzQpv3y.jpg') ?>">
                                
                            </video>
                        </div>  
                    </div>                
                  
                    <div class="panel panel-primary">
                    	<div class="panel-heading text-center"><b>Thống kê</b></div>
                        <div class="panel-body">                            
                            <!--Số lượt truy cập: 00001
                              <br />-->
                            Đang truy cập: <?php echo $online; ?>
                              
                        </div>  
                    </div>
                </div>
            </div>
        </div>        
        <div class="row">
            <div class="panel panel-primary">
  	             <div class="panel-heading text-center"><?php $this->load->view("template/footer");?></div>
            </div>
        </div> 
    </div>
</body>
</html>